import bblosReq from '../configRequest/index'

// 查询样品订单明细列表
export function listOrderDetail(query) {
  return bblosReq.request({
    url: '/simple/orderDetail/list',
    method: 'get',
    params: query
  })
}

// 查询样品订单明细详细
export function getOrderDetail(orderDetailId) {
  return bblosReq.request({
    url: '/simple/orderDetail/' + orderDetailId,
    method: 'get'
  })
}

// 新增样品订单明细
export function addOrderDetail(data) {
  return bblosReq.request({
    url: '/simple/orderDetail',
    method: 'post',
    data: data
  })
}

// 修改样品订单明细
export function updateOrderDetail(data) {
  return bblosReq.request({
    url: '/simple/orderDetail',
    method: 'put',
    data: data
  })
}

// 删除样品订单明细
export function delOrderDetail(orderDetailId) {
  return bblosReq.request({
    url: '/simple/orderDetail/' + orderDetailId,
    method: 'delete'
  })
}

// 导出样品订单明细
export function exportOrderDetail(query) {
  return bblosReq.request({
    url: '/simple/orderDetail/export',
    method: 'get',
    params: query
  })
}